/**
 * The relationship between arrays and pointers means that you can often use either approach when writing a program. 
*/
#include <stdio.h>
#define MONTHS 12
int main()
{
    //设置一年中每个月的天数向量
    int days[MONTHS] = {31,28,31,30,31,30,31,31,30,31,30,31};
    int index;
    for(index = 0;index < MONTHS;index++)
    {
        printf("Month %2d has %d days.\n",index+1,*(days+index));//same as days[index]
    }
    return 0;
}

